package com.idroc.coelacanth.core.storage;

/**
 * 数据库
 * @author yuyoo (yuyoo4j@163.com)
 * @date 2009-12-15 上午09:58:45
 */
public interface Database {

	void open();
	void close();
	
	long count();
	
	Record get(StorageKey key);
	boolean save(StorageKey key, StorageValue value);
	boolean delete(StorageKey key);
	
	Cursor getCursor();
}
